Xbasic

RTFMEMO.SET_CURSOR Function

Syntax

.SET_CURSOR( Location as N )

Arguments

Location

The new character position of the cursor. The position before the first character in the control is 1.

Description

The .SET_CURSOR() method sets the position of the cursor in an RTF Memo field.

Example

The following example sets the cursor position in an RTF field in an open form.

dim obj as P
obj = :Customer_Information:rtfmemofield.this
obj.rtf.insert_text("This is RTF text")
obj.rtf.set_cursor(10)

Limitations

Desktop applications only.

See Also